package Day02_java流程控制.Java09_用户交互Scanner;
import java.util.Scanner;
public class scanner对象nextLine接收 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("使用nextLine方式接收： ");
        if (scanner.hasNextLine()){
            String str = scanner.nextLine();
            System.out.println("输出内容为：" + str);
        }
        scanner.close();
    }
}
